package com.sunxu.ioc.repository;

import com.sunxu.ioc.domain.User;
import lombok.Data;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.context.ApplicationContext;

import java.util.Collection;

/**
 * @author 孙许
 * @version 1.0
 * @date 2020/4/11 11:07 下午
 */
@Data
public class UserRepository {

    /**
     * 自定义bean
     */
    private Collection<User> users;
    /**
     * 内建非bean对象(依赖)
     */
    private BeanFactory beanFactory;

    private ObjectFactory<ApplicationContext> objectFactory;
}
